package org.naxx.security.api.impl;

import org.naxx.security.api.NaxxServerManager;
import org.naxx.security.common.NotYetImplemented;
import org.naxx.security.model.request.Request;
import org.naxx.security.naxxlet.NaxxletLoader;
import org.naxx.security.util.Assert;

public class NaxxServerManagerImpl implements NaxxServerManager {

	private NaxxletLoader naxxletLoader;
	
	@Override
	public void deployNaxxlet(String naxxletName) throws Exception {
		Assert.assertNotNullAndHasLenght(naxxletName, "Invalid naxxlet name '" 
				+ naxxletName + "'");
		
		this.naxxletLoader.loadNaxxlet(naxxletName);
	}

	@Override
	public void evaluate(Request request) {
		throw new NotYetImplemented(NaxxServerManagerImpl.class.getCanonicalName() 
				+ " evalaute()");
	}
}
